package com.sfy.core.example.serializer;


import java.io.IOException;

/**
 * 提供序列化接口
 */
public interface Serializer {

    <T> byte[] serialize(T object) throws IOException;

    <T> T deserialize(byte[] bytes, Class<T> type) throws IOException;
}
